package com.linwen.javase.desgin_pattern.action.state;

/**
 * @ClassName ConcreteStateA
 * @Description
 * @Author lin
 * @Date 2022/6/29 下午11:44
 * @Version V1.0
 */
//具体状态A类
class ConcreteStateA extends State {
    public void Handle(Context context) {
        System.out.println("当前状态是 A.");
        context.setState(new ConcreteStateB());
    }
}